var Txt = '搜索库存';

function show_element2(){
    var obj=document.elementFromPoint(event.clientX,event.clientY);
    Txt=obj.innerText;
}

function seach() {
    var seachbid='搜索竞价';
    var seachstock='搜索库存';
    if(Txt==seachbid){
        var txt=document.getElementById('inputTxt').value;
        window.open('竞价搜索/main/index.html?'+txt);
    }else if(Txt==seachstock){
        var txt=document.getElementById('inputTxt').value;
        window.open('库存搜索/main/index.html?'+txt);
    }

}

